package com.tn.exam.entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "info_sys_user")
public class InfoSysUser extends BaseEntity implements java.io.Serializable {

	// Fields

	private Integer sysUserId;
	private String sysUserName;
	private Date sysSuserCreateTime;
	private Date sysUserModifyTime;
	private String sysUserPassword;
	private Integer sysUserPower;

	// Constructors

	/** default constructor */
	public InfoSysUser() {
	}

	/** minimal constructor */
	public InfoSysUser(String sysUserName, Date sysSuserCreateTime,
			String sysUserPassword, Integer sysUserPower) {
		this.sysUserName = sysUserName;
		this.sysSuserCreateTime = sysSuserCreateTime;
		this.sysUserPassword = sysUserPassword;
		this.sysUserPower = sysUserPower;
	}

	/** full constructor */
	public InfoSysUser(String sysUserName, Date sysSuserCreateTime,
			Date sysUserModifyTime, String sysUserPassword, Integer sysUserPower) {
		this.sysUserName = sysUserName;
		this.sysSuserCreateTime = sysSuserCreateTime;
		this.sysUserModifyTime = sysUserModifyTime;
		this.sysUserPassword = sysUserPassword;
		this.sysUserPower = sysUserPower;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "sys_user_id", unique = true, nullable = false)
	public Integer getSysUserId() {
		return this.sysUserId;
	}

	public void setSysUserId(Integer sysUserId) {
		this.sysUserId = sysUserId;
	}

	@Column(name = "sys_user_name", nullable = false, length = 32)
	public String getSysUserName() {
		return this.sysUserName;
	}

	public void setSysUserName(String sysUserName) {
		this.sysUserName = sysUserName;
	}

	@Column(name = "sys_suser_create_time", nullable = false, length = 19)
	public Date getSysSuserCreateTime() {
		return this.sysSuserCreateTime;
	}

	public void setSysSuserCreateTime(Date sysSuserCreateTime) {
		this.sysSuserCreateTime = sysSuserCreateTime;
	}

	@Column(name = "sys_user_modify_time", length = 19)
	public Date getSysUserModifyTime() {
		return this.sysUserModifyTime;
	}

	public void setSysUserModifyTime(Date sysUserModifyTime) {
		this.sysUserModifyTime = sysUserModifyTime;
	}

	@Column(name = "sys_user_password", nullable = false, length = 64)
	public String getSysUserPassword() {
		return this.sysUserPassword;
	}

	public void setSysUserPassword(String sysUserPassword) {
		this.sysUserPassword = sysUserPassword;
	}

	@Column(name = "sys_user_power", nullable = false)
	public Integer getSysUserPower() {
		return this.sysUserPower;
	}

	public void setSysUserPower(Integer sysUserPower) {
		this.sysUserPower = sysUserPower;
	}

}